package mz.co.frameworks.loader;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class Row {

	private String name;

	private Map<String, Cell> cellMap = new HashMap<String, Cell>();

	public Row(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public void addCell(Cell cell) {
		this.cellMap.put(cell.getName(), cell);
	}

	public Cell getCell(String name) {
		return cellMap.get(name);
	}

	public Collection<Cell> getCells() {
		return cellMap.values();
	}
}
